package net.lahuobao.mall.entity.admin;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;

/**   
 * @Title: Entity
 * @Description: 石油供应商
 * @author zhangdaihao
 * @date 2016-10-11 14:03:14
 * @version V1.0   
 *
 */
@Entity
@Table(name = "mall_oilsupplier", schema = "lahuobao")
@DynamicUpdate(true)
@DynamicInsert(true)
@SuppressWarnings("serial")
public class MallOilsupplierEntity implements java.io.Serializable {
	/**id*/
	private java.lang.Integer id;
	/**suppliername*/
	private java.lang.String suppliername;
	/**cardrule*/
	private java.lang.String cardrule;
	
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  id
	 */
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name ="ID",nullable=false,precision=10,scale=0)
	public java.lang.Integer getId(){
		return this.id;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  id
	 */
	public void setId(java.lang.Integer id){
		this.id = id;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  suppliername
	 */
	@Column(name ="SUPPLIERNAME",nullable=false,length=50)
	public java.lang.String getSuppliername(){
		return this.suppliername;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  suppliername
	 */
	public void setSuppliername(java.lang.String suppliername){
		this.suppliername = suppliername;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  cardrule
	 */
	@Column(name ="CARDRULE",nullable=false,length=200)
	public java.lang.String getCardrule(){
		return this.cardrule;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  cardrule
	 */
	public void setCardrule(java.lang.String cardrule){
		this.cardrule = cardrule;
	}
}
